package main

import "fmt"

func main() {

	m1 := map[string]string{
		"m1": "v1",
	}
	fmt.Printf("%v\n", m1)

	m2 := make(map[string]string)
	m2["m1"] = "v2"
	fmt.Printf("%v\n", m2)

	m3 := map[string]string{}
	fmt.Printf("%v\n", m3)

	m2["m2"] = "a"
	a, ok := m2["m2"]
	//fmt.Printf("%T", a,ok)
	if ok {
		fmt.Println("找到了", a)
	}
	fmt.Println(a, ok)

	//delete(m2, "1")
	//fmt.Println(m2)
	for k, v := range m2 {
		fmt.Println(k, v)
	}

}
